package com.hr.mes.entity;

import java.util.List;

public class Menu {

    private Integer menuId;

    /**
     * 菜单名
     */
    private String title;

    private String icon;

    /**
     * 菜单类型，0：目录，1：页面
     */
    private Integer type;

    /**
     * 页面
     */
    private String href;

    private Integer parentId;

    /**
     * 菜单层级
     */
    private Integer level;

    /**
     * 0:不可用，1：可用
     */
    private Integer status;

    /**
     * 自菜单
     */
    private List<Menu> children;

    public Menu() {
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuId=" + menuId +
                ", title='" + title + '\'' +
                ", icon='" + icon + '\'' +
                ", type=" + type +
                ", href='" + href + '\'' +
                ", parentId=" + parentId +
                ", level=" + level +
                ", status=" + status +
                ", children=" + children +
                '}';
    }
}
